public class java0701 {
    public static void main(String[] args) {
//        int a = 10;
//        Integer i = Integer.valueOf(a);//显示装箱
//        Integer i2 = 10;               //隐式装箱

//把包装类类型变为基本数据类型就是拆箱
        Integer a = 10;
        double b = a;//自动的

        int c =a.intValue();
        double d =a.doubleValue();//手动的


        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);

        Integer x = 100;
        Integer y = 100;
        System.out.println(x == y);
        Integer z = 200;
        Integer t = 200;
        System.out.println(z == t);  //一道面试题

    }

}
